package com.sihai.ehr.model.biz;

import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.OneToOne;

import com.sihai.core.BaseEntity;

/**
 * 定量考核设置实体类
 * 
 * @author Henry
 * 
 */
@Entity
public class ExamQuanSet extends BaseEntity<Long> {
	/**
	 * 
	 */
	private static final long serialVersionUID = -4190886162924684230L;

	@Id
	@GeneratedValue(strategy = GenerationType.AUTO)
	private Long id;

	/**
	 * duty_id percent items
	 */

	/** 考核职位 */
	@OneToOne(fetch = FetchType.LAZY)
	@JoinColumn(name = "duty_id")
	private Duty duty;

	/** 考核指标设定状态 */
	private Float pState;

	/** 考核项目数量 */
	private Integer itemCount;

	@Override
	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public Duty getDuty() {
		return duty;
	}

	public void setDuty(Duty duty) {
		this.duty = duty;
	}

	public Float getpState() {
		return pState;
	}

	public void setpState(Float pState) {
		this.pState = pState;
	}

	public Integer getItemCount() {
		return itemCount;
	}

	public void setItemCount(Integer itemCount) {
		this.itemCount = itemCount;
	}
}
